<%--
    Document   : form_isi_data
    Created on : Nov 9, 2012, 5:27:45 PM
    Author     : Rico
--%>
<%@page import="bunga.KaranganBunga"%>
<jsp:useBean id="pesan" scope="application" class="bunga.DataPesanan"/>

<%
            String Id = request.getParameter("idPesanan");

%>

<%
            if (request.getParameter("jumlah").equals("")) {
                response.sendRedirect(request.getParameter("hb") + "?error=");
            } else {
                session.setAttribute("jumlah", request.getParameter("jumlah"));
                session.setAttribute("noBunga", request.getParameter("noBunga"));
%>
<html xmlns="http://www.w3.org/1999/xhtml"></html>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Form Isi Data</title>
<link href='http://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'></link>
<link href='http://fonts.googleapis.com/css?family=Abel|Satisfy' rel='stylesheet' type='text/css'></link>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>

<script>
    $(document).ready(function() {
        //$("#datepicker").datepicker();
        $("#tgl").datepicker(
        {
            dateFormat: 'dd/mm/yy',
            changeMonth: true,
            changeYear: true
            //defaultDate: '20/03/2010'
        });
    });
</script>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>form isi data</title>
    </head>
    <body>
        <form method="post" action="insertUser.jsp">
            <%

                if (request.getAttribute("message") != null) {
                    out.print(request.getAttribute("message"));
                }
            %>
            <%bunga.KoneksiDatabase kon = new bunga.KoneksiDatabase();%>
            <div id="wrapper">
                <div id="header-wrapper">
                    <div id="menu">
                        <div id="header" class="container">
                            <ul>
                               <li><a href="home.jsp" class="selected">Home</a></li>
                            <li><a href="aboutUs.jsp" class="selected">About Us</a></li>
                            <li><a href="ourLocation.jsp" class="selected">Our Location</a></li>
                            <li><a href="cek_status.jsp">Cek Status Pesanan</a></li>
                            </ul>
                        </div>
                    </div>
                    <div id="banner">
                        <div class="content"><img src="images/header.jpg" width="1000" height="220" alt="" /></div>
                    </div>
                </div>
                <div>

                    <table align="center" width="600" border="2">

                        <tr>
                            <td>
                                <pre>
                <p><h2>Data Pemesan</h2></p>
                <p>Kode pesanan : <input type="text" name="idPesanan" value="<%=pesan.getKode_Pesanan()%>"size="50" ></input></p>
                <p>Nama         : <input type="text" name="namaPemesan" id="username"  size = "50" ></input></p>
                <p>Email        : <input type="text" name="email" id="email"  size = "50" ></input></p>
                <p>Alamat       : <input type="text" name="alamatPemesan" id="alamat"  size = "50" ></input></p>
                <p>Telepon      : <input type="text" name="teleponPemesan" id="telepon"  size = "50" ></input></p>
                                </pre>
                            </td>
                        </tr>
                    </table>
                </div>
                <div>
                    <table align="center" width="600" border="2">
                        <tr>
                            <td>
                                <pre>
            <body style="font-size:90.5%;">
                <p><h2>Data Penerima</h2></p>
                <p>Nama         : <input type="text" name="namaPenerima" id="username2"  size = "50" ></input></p>
                <p>Tanggal kirim: <input type="text" name="tglKirim" id="tgl"  size = "50" ></input></p>
                <p>Jam kirim    : <input type="text" name="jamKirim" id="tgl"  size = "50" ></input>format 24 jam</p>
                <p>Alamat       : <input type="text" name="alamatPenerima" id="alamat2"  size = "50" ></input></p>
                <p>Telepon      : <input type="text" name="teleponPenerima" id="telepon2"  size = "50" ></input></p>
                <p>Ucapan       : <input type="text" name="ucapan" id="ucapan" size = "50"></input></p></body>
                                </pre>
                            </td>
                        </tr>

                        <tr>

                            <td><input type="submit" value="confirm order" ></input></td>
                        </tr>
                    </table>

                </div>
                <div id="footer">
                    <p>Copyright (c) 2012. All rights reserved.<br />Designed & Developed by <a href="http://www.facebook.com/yulius.ferdian" target="_blank">Yulius</a></p>
                </div>
            </div>
        </form>
    </body>
</html>
<%}%>